package cn.wawi.entity.sys;

import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @description 系统权限实体类
 * @author 龚亮
 * @date 2015-05-26 09:44:12
 */
@JsonIgnoreProperties({"parent"})
public class Privilege implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String iconCls;
	private String name;
	private String url;
	private String status="1";
	private String description;
	private String permCode;
	private Integer sort=99;
	private String type;
	private Privilege parent;
	private String state="closed";
	private Long _parentId;
	private List<Privilege> children=new ArrayList<Privilege>();

	public Privilege(){
		
	}
	public Privilege(String name,String permCode,String des,Long _parentId){
		this.name=name;
		this.type="O";
		this.description=des;
		this.permCode=permCode;
		this._parentId=_parentId;
	}
	public List<Privilege> getChildren() {
		return children;
	}

	public void setChildren(List<Privilege> children) {
		this.children = children;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Privilege getParent() {
		return parent;
	}

	public void setParent(Privilege parent) {
		this.parent = parent;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	public String getPermCode() {
		return permCode;
	}

	public void setPermCode(String permCode) {
		this.permCode = permCode;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Long get_parentId() {
		return _parentId;
	}
	public void set_parentId(Long _parentId) {
		this._parentId = _parentId;
	}
}
